from fastapi import FastAPI
from api.api_01 import a01
from api.api_02 import a02
from api.api_03 import a03
from api.api_04 import a04
from api.api_05 import a05

app = FastAPI()


@app.get('/')
def index():
    return {
        'message': '项目启动'
    }


app = FastAPI()

app.include_router(a01, prefix='/api_01', tags=['接口_01'])
app.include_router(a02, prefix='/api_02', tags=['接口_02'])
app.include_router(a03, prefix='/api_03', tags=['接口_03'])
app.include_router(a04, prefix='/api_04', tags=['接口_04'])
app.include_router(a05, prefix='/api_05', tags=['接口_05'])

# if __name__ == '__main__':
#     import uvicorn
#
#     uvicorn.run(app)
